package Presentation;

import Data.Patientvisit;
import Logic.PatientvisitFacade;
import java.io.Serializable;
import javax.annotation.PostConstruct;
import javax.inject.Named;
import javax.inject.Inject;
import javax.enterprise.context.SessionScoped;

@Named(value = "patientvisitController")
@SessionScoped
public class PatientvisitController extends AbstractController<Patientvisit> implements Serializable {

    @Inject
    private PatientvisitFacade ejbFacade;

    public PatientvisitController() {
        super(Patientvisit.class);
    }

    @PostConstruct
    public void init() {
        super.setFacade(ejbFacade);
    }

    @Override
    protected void initializeEmbeddableKey() {
        this.getSelected().setPatientvisitPK(new Data.PatientvisitPK());
    }
}
